import request from '../common/request.js'

const api = {};

//请求方式必须大写，为了兼容其他应用
//报警管理列表
api.ShowData = params => request.globalRequest("/api/services/app/MaintenanceAlarm/Page",'POST',params,1)

//报警管理详情
api.AlarmOption = params => request.globalRequest("/api/services/app/MaintenanceAlarm/Get",'GET',params,1)

//报警地点
api.AlarmLocation = params => request.globalRequest("/api/services/app/ViewRoom/GetRoomSelect",'GET',params,1)

//报警对象
api.AlarmTarget = params => request.globalRequest("/api/services/app/MaintenanceTask/GetObjectName",'GET',params,1)

//报警管理抽屉
api.AlarmChoose = params => request.globalRequest("/api/services/app/Frame/GetAlarmScreen",'GET',params,1)

export default api